<footer id="footer">
    {{ if .Site.Params.showPrevNext }}
        <div class="post-navigation">
            {{ if .Page.PrevInSection }}
                <a href="{{ .Page.PrevInSection.Permalink }}" title="{{ .Page.PrevInSection.Title }}">
                    &laquo; {{ i18n "prevArticle" }} {{ .Page.PrevInSection.Title }}
                </a>
            {{ end }}
        
            {{ if .Page.NextInSection }}&emsp;
                <a href="{{ .Page.NextInSection.Permalink }}" title="{{ .Page.NextInSection.Title }}">
                    {{ i18n "nextArticle" }} {{ .Page.NextInSection.Title }} &raquo;
                </a>
            {{ end }}
        </div>
    {{ end }}

    {{ if .Site.Params.Social }}
        {{ partial "social.html" . }}
    {{ end }}

    <div class="copyright">
    {{ with .Site.Params.copyright }}
        {{ . | markdownify }}
    {{ else }}
       © Copyright 
       {{ now.Format "2006"}} 
       <span class="split">
        {{ partial "svgs/heart.svg" (dict "fill" "#bbbbbb" "width" 15 "height" 15 ) }}
       </span>
       {{ .Site.Params.Author }}
    {{ end }}
    </div>

    {{ if ne .Site.Params.showPowerBy false }}
      <div class="powerby">
        {{ i18n "poweredBy" | safeHTML }}
      </div>
    {{ end }}
</footer>

{{ range .Site.Params.customJS }}
    {{ if ( or ( hasPrefix . "http://" ) ( hasPrefix . "https://" ) ) }}
        <!-- remote js -->
        <script src="{{ . }}"></script>
    {{ else }}
        <!-- local js -->
        <script src="{{ $.Site.BaseURL }}{{ . }}"></script>
    {{ end }}
{{ end }}
